package com.dailyblue.java.spring.ioc.demo5;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

// 纯注解方式
@Component
public class DemoA {
    @Value("1")
    private Integer a;

    public void a() {
        System.out.println("DemoA`a:" + a);
    }
}
